import requests
from requests.adapters import HTTPAdapter

cur_session = requests.session()
adapter = HTTPAdapter(max_retries=5, pool_connections=10, pool_maxsize=200)
cur_session.mount("http://", adapter)
cur_session.mount("https://", adapter)


def get_global_session():
    return cur_session
